package org.anderground.editor.edits;

import org.anderground.core.model.Station;
import org.anderground.core.util.Coord;

/**
 * @author Eldar Abusalimov
 */
public class SetStationPositionAction extends MoveStationPositionAction {

	/**
	 * @param x
	 * @param y
	 * @param station
	 */
	public SetStationPositionAction(int x, int y, Station station) {
		super(x - station.getPosition().getX(), y
				- station.getPosition().getY(), station);
	}

	/**
	 * @param position
	 * @param station
	 */
	public SetStationPositionAction(Coord position, Station station) {
		this(position.getX(), position.getY(), station);
	}

}
